<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>添加新地址</title>
	<link href="${pageContext.request.contextPath }/client/css/main.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css">
</head>
<body>
	<%@include file="./include/head.jsp" %>
	<%@include file="./include/menu_search.jsp" %>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

	<div class="container" style="padding: 25px 0;">
		<form action="${pageContext.request.contextPath}/AddAddressServlet" method="POST">
			<div class="form-group">
				<label>收件人姓名</label>
				<input type="text" name="name" class="form-control" required />
			</div>
			<div class="form-group">
				<label>收件人手机</label>
				<input type="text" name="telephone" class="form-control" required pattern="^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$" />
			</div>
			<div class="form-group">
				<label>收件人地址</label>
				<textarea class="form-control" name="address" rows="3" required></textarea>
			</div>
			<button type="submit" class="btn btn-primary">保存</button>
		</form>
	</div>
	
	<%@include file="./include/foot.jsp" %>
</body>
</html>